package net.asfun.jvalog.entity;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Meter implements Model{
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	@Persistent
	private Key owner;
	@Persistent
	private int count = 0;

	@Override
	public Key getKey() {
		return key;
	}

	@Override
	public void setKey(Key k) {
		key = k;
	}

	public void setOwner(Key owner) {
		this.owner = owner;
	}

	public Key getOwner() {
		return owner;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getCount() {
		return count;
	}

}
